package com.hfut.wxy.entity.mysql;

import com.hfut.wxy.common.parent.WxyId;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

@Getter
@Setter
@DynamicInsert
@DynamicUpdate
@Entity
@Table(name = "wxyAppraise")
public class WxyAppraise extends WxyId {
    @Column(columnDefinition = "float(2,1) comment '评价星级'")
    private Float star;

    @Column(columnDefinition = "varchar(32) comment'标签'")
    private String label;

    @Column(columnDefinition = "int")
    private Integer orderId;

    private Integer appraiserId;

    private Integer beAppraisedId;
}
